/*
 * @,@Author: ,: 陈佳伟
 * @,@Date: ,: 2021-02-19 16:05:04
 * @LastEditTime: 2021-04-23 17:38:22
 * @LastEditors: 陈佳伟
 * @,@Description: ,: 放入环境变量
 * @FilePath: /wxapp/src/store/modules/envDomaion.js
 */
// 环境切换
let baseUrl = "";
let appId = "";
let getJsonUrl = ""
if (process.env.NODE_ENV === "development") {
    baseUrl = "https://sh20211227.hantieyi.cn/api"; // 外网
    getJsonUrl = 'https://sh20211227.hantieyi.cn/api'
} else {
    baseUrl = "https://sh20211227.hantieyi.cn/api";
    getJsonUrl = 'https://sh20211227.hantieyi.cn/api'
}
export default {
    state: {
        // cdn公共域名
        cdnDomain: "https://cdc-file.risechina.com/cdc/img",
        // 接口配置
        serverInfo: {
            baseUrl: baseUrl,
            getJsonUrl: getJsonUrl,
            appId
        }
    }
};